Dynomotion

Group: DynoMotion Message: 9182 From: Toby Rule Date: 2/10/2014
Subject: Getting board type
Hi Tom,

I found a case where my code is getting an unexpected result and I wanted to see if it is a bug, or I am missing something.  I'm using KMotion_DotNet, KMotion 4.31f. 

To test, I do the following:

* Unplug the kflop
* kmcontroller = new KMotion_dotNet.KM_Controller()
* Plug in kflop, wait a few seconds 
connected = kmcontroller.CheckConnected(); // returns true
boardtype = kmcontroller.BoardType; // returns 0 - But I think it should return 2

I am checking board type as part of the initialization routine of checking board type, serial number (for a licensing check) and firmware version (to update firmware).  I found a workaround, but it seems like this code should work.

Regards,

Toby
The information contained in this transmission is intended only for the person or entity
to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive
material. If you are not the intended recipient, please contact the sender immediately
and destroy the material in its entirety, whether electronic or hard copy. You are
notified that any review, retransmission, copying, disclosure, dissemination or other
use of, or taking of any action in reliance upon this information by persons or entities 
other than the intended recipient is prohibited.
Group: DynoMotion Message: 9189 From: Tom Kerekes Date: 2/11/2014
Subject: Re: Getting board type
Hi Toby,

BoardType is a property that is determined at the time the KM_Controller object is created.  In your scenario no board was connected at that time so the property is unknown.

There is a function GetBoardType() which will perform a new test, but it is declared private.  We changed to public for the next version.

Thanks
TK

Group: DynoMotion Message: 9190 From: Toby Rule Date: 2/11/2014
Subject: Re: Getting board type

Awesome, I guess I should have checked the code myself.  I’ll just make it public in my local version, until we update to a new version of KMotion.

 

Thanks,

Toby